import {
    defineStore
} from "pinia";
export default defineStore("main", {
    state: () => {
        return {
            icon_off: false,
            Refresh: false,
            menu: false,
            router_list: [{
                meta: {
                    title: "信息概览",
                    hidden: false, // 路由是否隐藏：true隐藏，false显示
                    icon: "Flag",
                },
                path: '/welcome_page',
                name: "welcome_page", // 命名路由
            }],
            router_name: {},
        };
    },
    actions: {

    },
    getters: {},
    persist: {
        enabled: true, // 这个配置代表存储生效，而且是整个store都存储
      }
});
